package org.example.classtopia.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.classtopia.Model.Entity.UserMessage;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
@Component
@Mapper
public interface UserMassageMapper {
    void InsertUserMessage(UserMessage userMessage);
    void DeleteCommentUserMessage(Long commentId);
    void DeletePostLikeUserMessage(Long userId, Long postId);
    void DeleteResourceLikeUserMessage(Long userId, Long resourceId);
    void UpdateUserMessageStatus(Long id);
    void UpdateAllUserMessagesStatus(Long userId);
    int countUnreadMessages(Long userId);
    int countUnreadMessagesByType(Long userId, String messageType);
    int countUnreadMessagesByTypes(Long userId, String[] messageTypes);
}
